<!-- start module contents -->
<table border="0" cellpadding="5" align="center">
  <tr>
    <td colspan="2" align="left"><img src="<{$img_folder}>" alt="" />&nbsp;&nbsp;<a href="javascript:<{ajax_update update_id='content' url='actions/index_action.php' method='get'  params=''}>"><{$lang_forumindex}></a><br />&nbsp;&nbsp;&nbsp;<img src="<{$img_folder}>" alt="" />&nbsp;&nbsp;<a href="javascript:<{ajax_update update_id='content' url='actions/search_action.php' method='get'  params=''}>"><{$lang_search}></a><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp<img src="<{$img_folder}>" alt="" />&nbsp;&nbsp;<{$lang_searchresults}></td>
  </tr>
</table>

<table class="outer" border="0" cellpadding="0" cellspacing="0" align="center" width="95%">
  <tr>
    <td>
      <table border="0" cellpadding="4" cellspacing="1" width="100%">
        <tr class="head" align="center">
			<td><{$lang_forum}></td>
			<td><{$lang_topic}></td>
			<td><{$lang_author}></td>
			<td><{$lang_replies}></td>
			<td><{$lang_views}></td>
			<td nowrap="nowrap"><{$lang_possttime}></td>
        </tr>
        <!-- start search results -->
		<{section name=i loop=$results}>
        <!-- start each result -->
        <tr align="center">
	<{assign var="resultsforumid" value=$results[i].forum_id}>
	<{assign var="resultsforumname" value=$results[i].forum_name}>
	<{assign var="resultstopicid" value=$results[i].topic_id}>
          <td class="even"><a href="javascript:<{ajax_update update_id='content' url='actions/viewforum_action.php' method='get'  params="forum=$resultsforumid"}>"><{$results[i].forum_name}></a></td>
          <td class="odd"><a href="javascript:<{ajax_update update_id='content' url='actions/viewtopic_action.php' method='get'  params="topic_id=$resultstopicid&forum=$resultsforumid"}>"><{$results[i].topic_title}></a></td>
          <td class="even"><a href="<{$xoops_url}>/userinfo.php?uid=<{$results[i].user_id}>"><{$results[i].user_name}></a></td>
          <td class="odd"><{$results[i].topic_replies}></td>
          <td class="even"><{$results[i].topic_views}></td>
          <td class="odd"><{$results[i].post_time}></td>
        </tr>
        <!-- end each result -->
        <{/section}>
        <!-- end search results -->
      </table>
    </td>
  </tr>
</table>
<br />
<{ajax_formupdate url="actions/search_action.php" method="post"  update_id="content"  id="newbbsearchform" }>
  <table class="outer" border="0" cellpadding="1" cellspacing="0" align="center" width="95%">
    <tr>
      <td>
        <table border="0" cellpadding="1" cellspacing="1" width="100%" class="head">
          <tr>
            <td class="head" width="50%" align="right"><b><{$lang_keywords}></b>&nbsp;</td>
            <td class="even" width="50%"><input type="text" name="term" /></td>
          </tr>
          <tr>
            <td class="head" width="50%">&nbsp;</td>
            <td class="even" width="50%"><input type="radio" name="addterms" value="any" checked="checked" /><{$lang_searchany}></td>
          </tr>
          <tr>
            <td class="head" width="50%">&nbsp;</td>
            <td class="even" width="50%"><input type="radio" name="addterms" value="all" /><{$lang_searchall}></td>
          </tr>
          <tr>
            <td class="head" width="50%" align="right"><b><{$lang_author}></b>&nbsp;</td>
            <td class="even" width="50%"><input type="text" name="search_username" /></td>
          </tr>
          <tr>
            <td class="head" width="50%" align="right">&nbsp;</td>
            <td class="even"><input type="submit" name="submit" value="<{$lang_search}>" /></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
<{/ajax_formupdate}>
<!-- end module contents -->